<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>09根作用域</title>
</head>
<body ng-app="app" ng-init="name='康熙'">
    <div ng-controller="parentController">{{name}}</div>
</body>
<script src="libs/angular.min.js"></script>
<script>
    var app = angular.module("app",[]);
    app.controller("parentController",["$scope",function($scope){
       //$scope.name="乾隆";
    }])
</script>
</html>